#ifndef __TEXT_BOX_H__
#define __TEXT_BOX_H__

#if __apple__
#include "Cocos2dxComponent.h"
#else
#include "gofgame/common/ui/Cocos2dxComponent.h"
#endif //__apple__

#include "cocos-ext.h"
using namespace gofgame::common::ui;
using namespace cocos2d::extension;

namespace gofgame {
	namespace common {
		namespace ui {
			class TextBox : public Cocos2dxComponent {
			public:
				TextBox(
					CCScale9Sprite *normal9SpriteBg = nullptr, 
					CCScale9Sprite *pressed9SpriteBg = nullptr, 
					CCScale9Sprite *disabled9SpriteBg = nullptr);

				virtual void visit() _override;

			protected:
				static CCScale9Sprite *getDefaultNormal9SpriteBg();
				static CCScale9Sprite *getDefaultPressed9SpriteBg();
				static CCScale9Sprite *getDefaultDisabled9SpriteBg();
			};
		}
	}
}

#endif //__TEXT_BOX_H__
